package demo4;

public class Dog extends Animal implements IRunnabel,ISwimmingable{
    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(this.name + "在吃狗狼");
    }

    @Override
    public void run() {
        System.out.println(this.name + "pao");
    }

    @Override
    public void swim() {
        System.out.println(this.name + "在游泳呢");
    }
}
